Package-level declarations

Types

Link copied to clipboard
@Serializable
enum Priority : Enum<Priority>

Task / list priority level.

Link copied to clipboard
@Serializable
data class Task(val id: String = "", val description: String = "", val isCompleted: Boolean = false, val dueDate: Long? = null, val recurrence: String = "", val expiredExecuted: Boolean = false, val completedOn: Long = 0)

A task entry inside a TaskList.

Link copied to clipboard
@Serializable
data class TaskListMetaData(val name: String = "Task List", val description: String = "", val tasks: List<Task> = emptyList(), val priority: Priority = Priority.NONE, val createdAt: Long = 0, val updatedAt: Long = 0, val error: String = "", val sources: List<NodeIdentity> = emptyList(), val snapshot: Snapshot = Snapshot(), val invocationTriggers: List<InvocationTrigger> = emptyList(), val nodeAction: NodeAction = NodeAction.EXECUTE, val inputs: List<NodeIdentity> = emptyList()) : SourceMetaData

Payload for a Project.TaskList node.

Functions

Link copied to clipboard
fun computeTaskListState(tasks: List<Task>, priority: Priority, nowMillis: Long): NodeState

Returns the worst NodeState that should be displayed for a TaskList containing the given tasks under the given priority.